<?php
class Zobrazjedlo_model extends CI_Model {
	
	public function get_items($slug)
	{
		$query = $this->db->select('Nazov')
			->where('Nazov_jedla', $slug)
			->get('Obsahuje');
				
		return $query->result_array();
	}
	
	public function get_name($slug)
	{
		$query = $this->db->select('Nazov_jedla')
			->where('ID', $slug)
			->get('Jedlo');
				
		$ret = $query->row_array();
		return $ret['Nazov_jedla'];
	}
	

}